class Emailer < ActionMailer::Base
   def notification(title,message,recipient,sent_at = Time.now)
      @subject = title
      @recipients = recipient.email
      @from = 'tripbook.notifications@gmail.com'
      @sent_on = sent_at
	  @body["message"] = message
  	  @body["email"] = 'tripbook.notifications@gmail.com'
      @headers = {}
   end
end
